package com.battery.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "设备类")
public class Device {
    @ApiModelProperty(name = "device_id", value = "设备id",required = true,example = "123")
    private int device_id;

    @ApiModelProperty(name = "device_type", value = "设备类型", example = "")
    private String device_type;

    @ApiModelProperty(name = "device_status", value = "设备状态", example = "123")
    private int device_status;

    @ApiModelProperty(name = "device_can_lent", value = "可借出个数", example = "123")
    private int device_can_lent;

    @ApiModelProperty(name = "device_can_return", value = "可还个数", example = "123")
    private int device_can_return;

    @ApiModelProperty(name = "mer_id", value = "设备绑定商户id", example = "123")
    private int mer_id;

    @ApiModelProperty(name = "sys_user_name", value = "设备所属代理", example = "")
    private String sys_user_name;

    @ApiModelProperty(name = "device_QR_code", value = "设备二维码", example = "")
    private String device_QR_code;

    @ApiModelProperty(name = "device_deposite", value = "押金", example = "123")
    private double device_deposite;

    @ApiModelProperty(name = "device_position", value = "设备所属位置", example = "")
    private String device_position;

    @ApiModelProperty(name = "device_num", value = "设备卡槽数量", example = "123")
    private int device_num;

    @ApiModelProperty(name = "rule_id", value = "计费规则id", example = "123")
    private int rule_id;

    public Device() {};

    public Device(int device_id, String device_type, int device_status, int device_can_lent, int device_can_return,
                  int mer_id, String sys_user_name, String device_QR_code, double device_deposite, String device_position,
                  int device_num, int rule_id) {
        this.device_id = device_id;
        this.device_type = device_type;
        this.device_status = device_status;
        this.device_can_lent = device_can_lent;
        this.device_can_return = device_can_return;
        this.mer_id = mer_id;
        this.sys_user_name = sys_user_name;
        this.device_QR_code = device_QR_code;
        this.device_deposite = device_deposite;
        this.device_position = device_position;
        this.device_num = device_num;
        this.rule_id = rule_id;
    }

    @Override
    public String toString() {
        return "Device{" +
                "device_id=" + device_id +
                ", device_type='" + device_type + '\'' +
                ", device_status=" + device_status +
                ", device_can_lent=" + device_can_lent +
                ", device_can_return=" + device_can_return +
                ", mer_id=" + mer_id +
                ", sys_user_name='" + sys_user_name + '\'' +
                ", device_QR_code='" + device_QR_code + '\'' +
                ", device_deposite=" + device_deposite +
                ", device_position='" + device_position + '\'' +
                ", device_num=" + device_num +
                ", rule_id=" + rule_id +
                '}';
    }

    public int getDevice_id() {
        return device_id;
    }

    public void setDevice_id(int device_id) {
        this.device_id = device_id;
    }

    public String getDevice_type() {
        return device_type;
    }

    public void setDevice_type(String device_type) {
        this.device_type = device_type;
    }

    public int getDevice_status() {
        return device_status;
    }

    public void setDevice_status(int device_status) {
        this.device_status = device_status;
    }

    public int getDevice_can_lent() {
        return device_can_lent;
    }

    public void setDevice_can_lent(int device_can_lent) {
        this.device_can_lent = device_can_lent;
    }

    public int getDevice_can_return() {
        return device_can_return;
    }

    public void setDevice_can_return(int device_can_return) {
        this.device_can_return = device_can_return;
    }

    public int getMer_id() {
        return mer_id;
    }

    public void setMer_id(int mer_id) {
        this.mer_id = mer_id;
    }

    public String getsys_user_name() {
        return sys_user_name;
    }

    public void setsys_user_name(String sys_user_name) {
        this.sys_user_name = sys_user_name;
    }

    public String getDevice_QR_code() {
        return device_QR_code;
    }

    public void setDevice_QR_code(String device_QR_code) {
        this.device_QR_code = device_QR_code;
    }

    public double getDevice_deposite() {
        return device_deposite;
    }

    public void setDevice_deposite(double device_deposite) {
        this.device_deposite = device_deposite;
    }

    public String getDevice_position() {
        return device_position;
    }

    public void setDevice_position(String device_position) {
        this.device_position = device_position;
    }

    public int getDevice_num() {
        return device_num;
    }

    public void setDevice_num(int device_num) {
        this.device_num = device_num;
    }

    public int getRule_id() {
        return rule_id;
    }

    public void setRule_id(int rule_id) {
        this.rule_id = rule_id;
    }
}
